<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>YuTori Class: test/tests/set.php ソースファイル</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/search.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- 作成： Doxygen 1.7.4 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "../../search",false,'検索');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">YuTori Class</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>メインページ</span></a></li>
      <li><a href="../../pages.html"><span>関連ページ</span></a></li>
      <li><a href="../../annotated.html"><span>データ構造</span></a></li>
      <li class="current"><a href="../../files.html"><span>ファイル</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="検索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../files.html"><span>ファイル一覧</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">test/tests/set.php</div>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 &lt;?php
<a name="l00007"></a><a class="code" href="../../db/d40/class_testof_yu_tori_set.html">00007</a> <span class="keyword">class </span><a class="code" href="../../db/d40/class_testof_yu_tori_set.html">TestofYuToriSet</a> <span class="keyword">extends</span> UnitTestCase {
<a name="l00008"></a><a class="code" href="../../db/d40/class_testof_yu_tori_set.html#a095c5d389db211932136b53f25f39685">00008</a>         <span class="keyword">public</span> function <a class="code" href="../../db/d40/class_testof_yu_tori_set.html#a095c5d389db211932136b53f25f39685">__construct</a> () {
<a name="l00009"></a>00009         }
<a name="l00010"></a>00010 
<a name="l00011"></a>00011         <span class="comment">// 試験汎用</span>
<a name="l00012"></a>00012         <span class="comment">// 第1引数のみ指定</span>
<a name="l00013"></a><a class="code" href="../../db/d40/class_testof_yu_tori_set.html#a4a3e53ed5866f9d3479eed7774cb2b18">00013</a>         <span class="keyword">private</span> function <a class="code" href="../../db/d40/class_testof_yu_tori_set.html#a4a3e53ed5866f9d3479eed7774cb2b18">_CommonTest_01</a> ($value, $type) {
<a name="l00014"></a>00014                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="stringliteral">&#39;orig&#39;</span>, <span class="stringliteral">&#39;originalName&#39;</span>);
<a name="l00015"></a>00015                 
<a name="l00016"></a>00016                 $this-&gt;assertTrue($y-&gt;set ($value) == $y, <span class="stringliteral">&#39;戻り値判定&#39;</span>);
<a name="l00017"></a>00017                 $this-&gt;assertIdentical($res = $y-&gt;getType() , $type, <span class="stringliteral">&#39;型判定&#39;</span>);
<a name="l00018"></a>00018                 $this-&gt;assertIdentical($res = $y-&gt;getName() , <span class="stringliteral">&#39;originalName&#39;</span>, <span class="stringliteral">&#39;名称判定&#39;</span>);
<a name="l00019"></a>00019                 $this-&gt;assertIdentical($res = $y-&gt;get() , $value, <span class="stringliteral">&#39;get値判定&#39;</span>);
<a name="l00020"></a>00020                 $this-&gt;assertIdentical($res = $y-&gt;call() , $value, <span class="stringliteral">&#39;call値判定&#39;</span>);
<a name="l00021"></a>00021         }
<a name="l00022"></a><a class="code" href="../../db/d40/class_testof_yu_tori_set.html#a980180056766a87f45df2f1b2863a090">00022</a>         <span class="keyword">private</span> function <a class="code" href="../../db/d40/class_testof_yu_tori_set.html#a980180056766a87f45df2f1b2863a090">_CommonTestY_01</a> ($value, $type, $instance) {
<a name="l00023"></a>00023                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="stringliteral">&#39;orig&#39;</span>, <span class="stringliteral">&#39;originalName&#39;</span>);
<a name="l00024"></a>00024                 
<a name="l00025"></a>00025                 $this-&gt;assertTrue ($y-&gt;set ($value) == $y, <span class="stringliteral">&#39;戻り値判定&#39;</span>);
<a name="l00026"></a>00026                 $this-&gt;assertIdentical($res = $y-&gt;getType() , $type, <span class="stringliteral">&#39;型判定&#39;</span>);
<a name="l00027"></a>00027                 $this-&gt;assertIdentical($res = $y-&gt;getName() , <span class="stringliteral">&#39;originalName&#39;</span>, <span class="stringliteral">&#39;名称判定&#39;</span>);
<a name="l00028"></a>00028                 $this-&gt;assertIdentical($res = $y-&gt;get() , $instance, <span class="stringliteral">&#39;get値判定&#39;</span>);
<a name="l00029"></a>00029                 $this-&gt;assertIdentical($res = $y-&gt;call() , $instance, <span class="stringliteral">&#39;call値判定&#39;</span>);
<a name="l00030"></a>00030         }
<a name="l00031"></a>00031 
<a name="l00032"></a>00032         <span class="comment">// TYPE_SCALAR</span>
<a name="l00033"></a><a class="code" href="../../db/d40/class_testof_yu_tori_set.html#adbac3f4e879c7c1ad0b8c9fb14aa1706">00033</a>         <span class="keyword">public</span> function <a class="code" href="../../db/d40/class_testof_yu_tori_set.html#adbac3f4e879c7c1ad0b8c9fb14aa1706">TestofScalar</a>() {
<a name="l00034"></a>00034                 $this-&gt;<a class="code" href="../../db/d40/class_testof_yu_tori_set.html#a4a3e53ed5866f9d3479eed7774cb2b18">_CommonTest_01</a> (<span class="stringliteral">&#39;Test&#39;</span>, <a class="code" href="../../d0/dfd/class_yu_tori.html#a40e11b5ee4ea95b924f0c0b6d37809dc">YuTori::TYPE_SCALAR</a>);
<a name="l00035"></a>00035                 $this-&gt;<a class="code" href="../../db/d40/class_testof_yu_tori_set.html#a4a3e53ed5866f9d3479eed7774cb2b18">_CommonTest_01</a> (1, <a class="code" href="../../d0/dfd/class_yu_tori.html#a40e11b5ee4ea95b924f0c0b6d37809dc">YuTori::TYPE_SCALAR</a>);
<a name="l00036"></a>00036         }
<a name="l00037"></a>00037 
<a name="l00038"></a>00038         <span class="comment">// TYPE_BOOL</span>
<a name="l00039"></a>00039         <span class="comment">// booleanは２つしかないのでどっちも試験する。</span>
<a name="l00040"></a><a class="code" href="../../db/d40/class_testof_yu_tori_set.html#acbe20062b60c33376c0c388e90640b93">00040</a>         <span class="keyword">public</span> function <a class="code" href="../../db/d40/class_testof_yu_tori_set.html#acbe20062b60c33376c0c388e90640b93">TestofBool</a>() {
<a name="l00041"></a>00041                 $this-&gt;<a class="code" href="../../db/d40/class_testof_yu_tori_set.html#a4a3e53ed5866f9d3479eed7774cb2b18">_CommonTest_01</a> (<span class="keyword">true</span>, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2008e61ac981f88cf7a8218c600077f5">YuTori::TYPE_BOOL</a>);
<a name="l00042"></a>00042                 $this-&gt;<a class="code" href="../../db/d40/class_testof_yu_tori_set.html#a4a3e53ed5866f9d3479eed7774cb2b18">_CommonTest_01</a> (<span class="keyword">false</span>, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2008e61ac981f88cf7a8218c600077f5">YuTori::TYPE_BOOL</a>);
<a name="l00043"></a>00043         }
<a name="l00044"></a>00044 
<a name="l00045"></a>00045         <span class="comment">// TYPE_NULL</span>
<a name="l00046"></a><a class="code" href="../../db/d40/class_testof_yu_tori_set.html#a2e3b4fbe4dc05a568de62a8b5ff93236">00046</a>         <span class="keyword">public</span> function <a class="code" href="../../db/d40/class_testof_yu_tori_set.html#a2e3b4fbe4dc05a568de62a8b5ff93236">TestofNull</a>() {
<a name="l00047"></a>00047                 $this-&gt;<a class="code" href="../../db/d40/class_testof_yu_tori_set.html#a4a3e53ed5866f9d3479eed7774cb2b18">_CommonTest_01</a> (null, <a class="code" href="../../d0/dfd/class_yu_tori.html#a5e1f66f767bfb7293469d627772da2bb">YuTori::TYPE_NULL</a>);
<a name="l00048"></a>00048         }
<a name="l00049"></a>00049 
<a name="l00050"></a>00050         <span class="comment">// TYPE_ARRAY</span>
<a name="l00051"></a><a class="code" href="../../db/d40/class_testof_yu_tori_set.html#aafa177430173d414e73d0c9716343609">00051</a>         <span class="keyword">public</span> function <a class="code" href="../../db/d40/class_testof_yu_tori_set.html#aafa177430173d414e73d0c9716343609">TestofArray</a>() {
<a name="l00052"></a>00052                 $arr = array(0,1,2);
<a name="l00053"></a>00053                 $this-&gt;<a class="code" href="../../db/d40/class_testof_yu_tori_set.html#a4a3e53ed5866f9d3479eed7774cb2b18">_CommonTest_01</a> ($arr, <a class="code" href="../../d0/dfd/class_yu_tori.html#a11563c517f16ce832ff4fed40928a12b">YuTori::TYPE_ARRAY</a>);
<a name="l00054"></a>00054         }
<a name="l00055"></a>00055         <span class="comment">// TYPE_OBJECT</span>
<a name="l00056"></a><a class="code" href="../../db/d40/class_testof_yu_tori_set.html#aaf0ee24f84ac96485d62782ff7620fb0">00056</a>         <span class="keyword">public</span> function <a class="code" href="../../db/d40/class_testof_yu_tori_set.html#aaf0ee24f84ac96485d62782ff7620fb0">TestofObject</a>() {
<a name="l00057"></a>00057                 $obj = <span class="keyword">new</span> stdClass();
<a name="l00058"></a>00058                 $this-&gt;<a class="code" href="../../db/d40/class_testof_yu_tori_set.html#a4a3e53ed5866f9d3479eed7774cb2b18">_CommonTest_01</a> ($obj, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2365fd1fb1e6d6e994238955ce32a8ec">YuTori::TYPE_OBJECT</a>);
<a name="l00059"></a>00059         }
<a name="l00060"></a>00060 
<a name="l00061"></a>00061         <span class="comment">// TYPE_CALLABLE</span>
<a name="l00062"></a><a class="code" href="../../db/d40/class_testof_yu_tori_set.html#a631e5d3719fa622ec7d4931355369ea5">00062</a>         <span class="keyword">public</span> function <a class="code" href="../../db/d40/class_testof_yu_tori_set.html#a631e5d3719fa622ec7d4931355369ea5">TestofCallable</a>() {
<a name="l00063"></a>00063                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="stringliteral">&#39;orig&#39;</span>, <span class="stringliteral">&#39;originalName&#39;</span>);
<a name="l00064"></a>00064 
<a name="l00065"></a>00065                 $y-&gt;set(<span class="stringliteral">&#39;myFunc&#39;</span>, <a class="code" href="../../d0/dfd/class_yu_tori.html#a0a2c1f3ba4b81c0938122ff4e88764f8">YuTori::TYPE_CALLABLE</a>);
<a name="l00066"></a>00066                 $this-&gt;assertIdentical($y-&gt;getType() , <a class="code" href="../../d0/dfd/class_yu_tori.html#a0a2c1f3ba4b81c0938122ff4e88764f8">YuTori::TYPE_CALLABLE</a>, <span class="stringliteral">&#39;型判定&#39;</span>);
<a name="l00067"></a>00067                 $this-&gt;assertIdentical($y-&gt;getName() , <span class="stringliteral">&#39;originalName&#39;</span>, <span class="stringliteral">&#39;名称判定&#39;</span>);
<a name="l00068"></a>00068                 $this-&gt;assertIdentical($y-&gt;get() , <span class="stringliteral">&#39;myFunc&#39;</span>, <span class="stringliteral">&#39;get値判定&#39;</span>);
<a name="l00069"></a>00069                 $this-&gt;assertIdentical($y-&gt;call() , <span class="stringliteral">&#39;Func!&#39;</span>, <span class="stringliteral">&#39;call値判定&#39;</span>);
<a name="l00070"></a>00070 
<a name="l00071"></a>00071                 <span class="comment">// メソッドの時</span>
<a name="l00072"></a>00072                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="stringliteral">&#39;orig&#39;</span>, <span class="stringliteral">&#39;originalName&#39;</span>);
<a name="l00073"></a>00073 
<a name="l00074"></a>00074                 $func = array(<span class="keyword">new</span> <a class="code" href="../../d5/d45/classmy_class.html">myClass</a>(), <span class="stringliteral">&#39;func&#39;</span>);
<a name="l00075"></a>00075                 $y-&gt;set($func, <a class="code" href="../../d0/dfd/class_yu_tori.html#a0a2c1f3ba4b81c0938122ff4e88764f8">YuTori::TYPE_CALLABLE</a>);
<a name="l00076"></a>00076                 $this-&gt;assertIdentical($y-&gt;getType() , <a class="code" href="../../d0/dfd/class_yu_tori.html#a0a2c1f3ba4b81c0938122ff4e88764f8">YuTori::TYPE_CALLABLE</a>, <span class="stringliteral">&#39;型判定&#39;</span>);
<a name="l00077"></a>00077                 $this-&gt;assertIdentical($y-&gt;getName() , <span class="stringliteral">&#39;originalName&#39;</span>, <span class="stringliteral">&#39;名称判定&#39;</span>);
<a name="l00078"></a>00078                 $this-&gt;assertTrue($y-&gt;get() == $func , <span class="stringliteral">&#39;get値判定&#39;</span>);
<a name="l00079"></a>00079                 $this-&gt;assertIdentical($y-&gt;call() , <span class="stringliteral">&#39;Method!&#39;</span>, <span class="stringliteral">&#39;call値判定&#39;</span>);
<a name="l00080"></a>00080 
<a name="l00081"></a>00081                 <span class="comment">// 存在しない関数</span>
<a name="l00082"></a>00082                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="stringliteral">&#39;orig&#39;</span>, <span class="stringliteral">&#39;originalName&#39;</span>);
<a name="l00083"></a>00083                 $y-&gt;set(<span class="stringliteral">&#39;myFunc2&#39;</span>, <a class="code" href="../../d0/dfd/class_yu_tori.html#a0a2c1f3ba4b81c0938122ff4e88764f8">YuTori::TYPE_CALLABLE</a>);
<a name="l00084"></a>00084                 $this-&gt;assertIdentical($y-&gt;getType() , <a class="code" href="../../d0/dfd/class_yu_tori.html#a40e11b5ee4ea95b924f0c0b6d37809dc">YuTori::TYPE_SCALAR</a>, <span class="stringliteral">&#39;型判定&#39;</span>);
<a name="l00085"></a>00085                 $this-&gt;assertIdentical($y-&gt;getName() , <span class="stringliteral">&#39;originalName&#39;</span>, <span class="stringliteral">&#39;名称判定&#39;</span>);
<a name="l00086"></a>00086                 $this-&gt;assertIdentical($y-&gt;get() , <span class="stringliteral">&#39;orig&#39;</span>, <span class="stringliteral">&#39;get値判定&#39;</span>);
<a name="l00087"></a>00087                 $this-&gt;assertIdentical($y-&gt;call() , <span class="stringliteral">&#39;orig&#39;</span>, <span class="stringliteral">&#39;call値判定&#39;</span>);
<a name="l00088"></a>00088                 $this-&gt;assertFalse($y-&gt;isEmpty(), <span class="stringliteral">&#39;isEmpty値判定&#39;</span>);
<a name="l00089"></a>00089 
<a name="l00090"></a>00090                 <span class="comment">// 存在しないメソッド</span>
<a name="l00091"></a>00091                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="stringliteral">&#39;orig&#39;</span>, <span class="stringliteral">&#39;originalName&#39;</span>);
<a name="l00092"></a>00092                 $func = array(<span class="keyword">new</span> <a class="code" href="../../d5/d45/classmy_class.html">myClass</a>(), <span class="stringliteral">&#39;func2&#39;</span>);
<a name="l00093"></a>00093                 $y-&gt;set($func, <a class="code" href="../../d0/dfd/class_yu_tori.html#a0a2c1f3ba4b81c0938122ff4e88764f8">YuTori::TYPE_CALLABLE</a>);
<a name="l00094"></a>00094                 $this-&gt;assertIdentical($y-&gt;getType() , <a class="code" href="../../d0/dfd/class_yu_tori.html#a40e11b5ee4ea95b924f0c0b6d37809dc">YuTori::TYPE_SCALAR</a>, <span class="stringliteral">&#39;型判定&#39;</span>);
<a name="l00095"></a>00095                 $this-&gt;assertIdentical($y-&gt;getName() , <span class="stringliteral">&#39;originalName&#39;</span>, <span class="stringliteral">&#39;名称判定&#39;</span>);
<a name="l00096"></a>00096                 $this-&gt;assertIdentical($y-&gt;get() , <span class="stringliteral">&#39;orig&#39;</span>, <span class="stringliteral">&#39;get値判定&#39;</span>);
<a name="l00097"></a>00097                 $this-&gt;assertIdentical($y-&gt;call() , <span class="stringliteral">&#39;orig&#39;</span>, <span class="stringliteral">&#39;call値判定&#39;</span>);
<a name="l00098"></a>00098                 $this-&gt;assertFalse($y-&gt;isEmpty(), <span class="stringliteral">&#39;isEmpty値判定&#39;</span>);
<a name="l00099"></a>00099         }
<a name="l00100"></a>00100 
<a name="l00101"></a>00101         <span class="comment">// TYPE_FILE </span>
<a name="l00102"></a>00102 
<a name="l00103"></a>00103         <span class="comment">// TYPE_YuToriObject</span>
<a name="l00104"></a><a class="code" href="../../db/d40/class_testof_yu_tori_set.html#ab4c436dc23938f6013cdf23c7412f85a">00104</a>         <span class="keyword">public</span> function <a class="code" href="../../db/d40/class_testof_yu_tori_set.html#ab4c436dc23938f6013cdf23c7412f85a">TestofY_Scalar</a>() {
<a name="l00105"></a>00105                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="stringliteral">&#39;test&#39;</span>);
<a name="l00106"></a>00106                 $this-&gt;<a class="code" href="../../db/d40/class_testof_yu_tori_set.html#a980180056766a87f45df2f1b2863a090">_CommonTestY_01</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a40e11b5ee4ea95b924f0c0b6d37809dc">YuTori::TYPE_SCALAR</a>, <span class="stringliteral">&#39;test&#39;</span>);
<a name="l00107"></a>00107         }
<a name="l00108"></a><a class="code" href="../../db/d40/class_testof_yu_tori_set.html#a09ec4d72fa0f23b2e2f5ed9ae99cb2a2">00108</a>         <span class="keyword">public</span> function <a class="code" href="../../db/d40/class_testof_yu_tori_set.html#a09ec4d72fa0f23b2e2f5ed9ae99cb2a2">TestofY_Bool</a>() {
<a name="l00109"></a>00109                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="keyword">true</span>);
<a name="l00110"></a>00110                 $this-&gt;<a class="code" href="../../db/d40/class_testof_yu_tori_set.html#a980180056766a87f45df2f1b2863a090">_CommonTestY_01</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2008e61ac981f88cf7a8218c600077f5">YuTori::TYPE_BOOL</a>, <span class="keyword">true</span>);
<a name="l00111"></a>00111         }
<a name="l00112"></a><a class="code" href="../../db/d40/class_testof_yu_tori_set.html#a4f789c08771e5bea31cb0daf0d26e9ee">00112</a>         <span class="keyword">public</span> function <a class="code" href="../../db/d40/class_testof_yu_tori_set.html#a4f789c08771e5bea31cb0daf0d26e9ee">TestofY_Null</a>() {
<a name="l00113"></a>00113                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(null);
<a name="l00114"></a>00114                 $this-&gt;<a class="code" href="../../db/d40/class_testof_yu_tori_set.html#a980180056766a87f45df2f1b2863a090">_CommonTestY_01</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a5e1f66f767bfb7293469d627772da2bb">YuTori::TYPE_NULL</a>, null);
<a name="l00115"></a>00115         }
<a name="l00116"></a><a class="code" href="../../db/d40/class_testof_yu_tori_set.html#a1d6b3a57ecf0640eb020de6a3c194813">00116</a>         <span class="keyword">public</span> function <a class="code" href="../../db/d40/class_testof_yu_tori_set.html#a1d6b3a57ecf0640eb020de6a3c194813">TestofY_Array</a>() {
<a name="l00117"></a>00117                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(array(0,1,2));
<a name="l00118"></a>00118                 $this-&gt;<a class="code" href="../../db/d40/class_testof_yu_tori_set.html#a980180056766a87f45df2f1b2863a090">_CommonTestY_01</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a11563c517f16ce832ff4fed40928a12b">YuTori::TYPE_ARRAY</a>, array(0,1,2));
<a name="l00119"></a>00119         }
<a name="l00120"></a><a class="code" href="../../db/d40/class_testof_yu_tori_set.html#aa827132b9c5ce5db3b1bf4d083e27688">00120</a>         <span class="keyword">public</span> function <a class="code" href="../../db/d40/class_testof_yu_tori_set.html#aa827132b9c5ce5db3b1bf4d083e27688">TestofY_Object</a>() {
<a name="l00121"></a>00121                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="keyword">new</span> stdClass());
<a name="l00122"></a>00122                 $this-&gt;<a class="code" href="../../db/d40/class_testof_yu_tori_set.html#a980180056766a87f45df2f1b2863a090">_CommonTestY_01</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2365fd1fb1e6d6e994238955ce32a8ec">YuTori::TYPE_OBJECT</a>, <span class="keyword">new</span> stdClass());
<a name="l00123"></a>00123         }
<a name="l00124"></a>00124         
<a name="l00125"></a>00125         <span class="comment">// その他の試験</span>
<a name="l00126"></a><a class="code" href="../../db/d40/class_testof_yu_tori_set.html#a606efce2f14c1457cc4693bbaef105e9">00126</a>         <span class="keyword">public</span> function <a class="code" href="../../db/d40/class_testof_yu_tori_set.html#a606efce2f14c1457cc4693bbaef105e9">TestofNoUseName</a> () {
<a name="l00127"></a>00127         }
<a name="l00128"></a>00128 }
<a name="l00129"></a>00129 
<a name="l00130"></a>00130 <span class="keywordflow">if</span> (!function_exists(<span class="stringliteral">&#39;myFunc&#39;</span>)) {
<a name="l00131"></a>00131         function myFunc () {
<a name="l00132"></a>00132                 <span class="keywordflow">return</span> <span class="stringliteral">&#39;Func!&#39;</span>;
<a name="l00133"></a>00133         }
<a name="l00134"></a>00134 }
<a name="l00135"></a>00135 
<a name="l00136"></a>00136 <span class="keywordflow">if</span> (!class_exists(<span class="stringliteral">&#39;myClass&#39;</span>)) {
<a name="l00137"></a>00137         <span class="keyword">class </span><a class="code" href="../../d5/d45/classmy_class.html">myClass</a> {
<a name="l00138"></a>00138                 function <a class="code" href="../../d5/d45/classmy_class.html#a17c6e659a89c18fa9459ec5341063fb8">func</a> () {
<a name="l00139"></a>00139                         <span class="keywordflow">return</span> <span class="stringliteral">&#39;Method!&#39;</span>;
<a name="l00140"></a>00140                 }
<a name="l00141"></a>00141         }
<a name="l00142"></a>00142 }
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>全て</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>データ構造</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>関数</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>変数</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>YuTori Classに対してMon May 21 2012 00:22:16に生成されました。&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>
